package com.class05;

/**
 * @ClassDescription:
 * @JdkVersion: 17
 * @Author: yxy
 * @Created: 2023/12/26 20:16
 */
public class StringExer {
    public static void main(String[] args) {
        String name = "yxy";
        int age = 18;
        char gender = '男';
        double weight = 170.5;
        boolean isMarried = true;
        String phoneNumber = "12344333231";
        System.out.println("姓名：" + name);
        System.out.println("年龄：" + age);
        System.out.println("性别：" + gender);
        System.out.println("体重：" + weight);
        System.out.println("婚否：" + isMarried);
        System.out.println("电话：" + phoneNumber);
        //或者
        System.out.println("name = " + name + ",age = " + age + "，gender = " +
                gender + ",weight = " + weight + ",isMarried = " + isMarried +
                ",phoneNumber = " + phoneNumber);


        System.out.println('a'+1+"Hello!");
        System.out.print("hello");
        System.out.println("world");
        System.out.print("hello");
        System.out.print("world");

    }
}
